import UserTempService from '../service/user-temp-service';
import * as Koa from 'koa';

class UserTempController {
  private service: UserTempService = new UserTempService();

  // 删除
  delUserTemp = async (ctx: Koa.Context) => {
    await this.service.delUserTemp(ctx);
  };

  // 修改
  updateUserTemp = async (ctx: Koa.Context) => {
    await this.service.updateUserTemp(ctx);
  };

  // 查询
  searchUserTemp = async (ctx: Koa.Context) => {
    await this.service.searchUserTemp(ctx);
  };
}

export default new UserTempController();
